# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroup do
  @moduledoc """
  An asset group. AssetGroupAsset is used to link an asset to the asset group. AssetGroupSignal is used to associate a signal to an asset group.

  ## Attributes

  *   `adStrength` (*type:* `String.t`, *default:* `nil`) - Output only. Overall ad strength of this asset group.
  *   `campaign` (*type:* `String.t`, *default:* `nil`) - Immutable. The campaign with which this asset group is associated. The asset which is linked to the asset group.
  *   `finalMobileUrls` (*type:* `list(String.t)`, *default:* `nil`) - A list of final mobile URLs after all cross domain redirects. In performance max, by default, the urls are eligible for expansion unless opted out.
  *   `finalUrls` (*type:* `list(String.t)`, *default:* `nil`) - A list of final URLs after all cross domain redirects. In performance max, by default, the urls are eligible for expansion unless opted out.
  *   `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the asset group.
  *   `name` (*type:* `String.t`, *default:* `nil`) - Required. Name of the asset group. Required. It must have a minimum length of 1 and maximum length of 128. It must be unique under a campaign.
  *   `path1` (*type:* `String.t`, *default:* `nil`) - First part of text that may appear appended to the url displayed in the ad.
  *   `path2` (*type:* `String.t`, *default:* `nil`) - Second part of text that may appear appended to the url displayed in the ad. This field can only be set when path1 is set.
  *   `resourceName` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the asset group. Asset group resource names have the form: `customers/{customer_id}/assetGroups/{asset_group_id}`
  *   `status` (*type:* `String.t`, *default:* `nil`) - The status of the asset group.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :adStrength => String.t() | nil,
          :campaign => String.t() | nil,
          :finalMobileUrls => list(String.t()) | nil,
          :finalUrls => list(String.t()) | nil,
          :id => String.t() | nil,
          :name => String.t() | nil,
          :path1 => String.t() | nil,
          :path2 => String.t() | nil,
          :resourceName => String.t() | nil,
          :status => String.t() | nil
        }

  field(:adStrength)
  field(:campaign)
  field(:finalMobileUrls, type: :list)
  field(:finalUrls, type: :list)
  field(:id)
  field(:name)
  field(:path1)
  field(:path2)
  field(:resourceName)
  field(:status)
end

defimpl Poison.Decoder,
  for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroup do
  def decode(value, options) do
    GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroup.decode(
      value,
      options
    )
  end
end

defimpl Poison.Encoder,
  for: GoogleApi.SearchAds360.V0.Model.GoogleAdsSearchads360V0Resources_AssetGroup do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
